package sc.prototype.pfs.eventnotify.model;

import sc.prototype.pfs.eventnotify.model.enums.NotifyAPIType;

/**
 * 通知目标
 */
public class NotifyTarget {

    public NotifyTarget(NotifyAPIType notifyAPIType, String notifyAddress) {
        this.notifyAPIType = notifyAPIType;
        this.notifyAddress = notifyAddress;
    }

    /** 通知方式类型 */
    NotifyAPIType notifyAPIType;

    /** 通知地址 */
    String notifyAddress;

    public NotifyAPIType getNotifyAPIType() {
        return notifyAPIType;
    }

    public void setNotifyAPIType(NotifyAPIType notifyAPIType) {
        this.notifyAPIType = notifyAPIType;
    }

    public String getNotifyAddress() {
        return notifyAddress;
    }

    public void setNotifyAddress(String notifyAddress) {
        this.notifyAddress = notifyAddress;
    }

    @Override
    public String toString() {
        return notifyAPIType + ":" + notifyAddress;
    }

}
